#ifndef STOREVARIABLE_H
#define STOREVARIABLE_H
//
#include <QtGui>
#include "variable.h"
#include "variablelist.h"
#include "variablestack.h"
//
class storeVariable : public QUndoCommand
{
public:
	storeVariable(Variable *,VariableList *,VariableStack *,QUndoCommand * = 0);
	
	void undo();
	void redo();

private:
	QString Name;
	double Val;
	double PrevVal;
	QString Expr;
	QString PrevExpr;
	VariableList *List;
	VariableStack *Stack;
};
#endif
